<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs2.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/core/adminTopMeta.jsp"%>



</head>

<body oncontextmenu="return false">
	<div class="loader"></div>
	<div class="row">
		<div class="col-md-12">
			<div class="panel">
				<div class="panel-heading text-primary">
					<h3 class="panel-title">
						<i class="fa fa-group"></i> 已报单代理商 <span class="pull-right">
							<div class="btn-group code">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="Classes used"> </a>

							</div> </span>
					</h3>
				</div>

				<!-- /panel body -->
			</div>
		</div>

		<div class="col-md-12">
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title  text-white" style="font-size: 17px;">已报单代理商</h3>
				</div>
				<div class="panel-body">

					<form name="commitForm" id="commitForm" method="post" action="admin/member/memberYesActiveList.shtml">
						<div class="table-responsive">

							<jodd:form scopes="request">

								<table class="table table-bordered  table-striped " style="min-width: 765px;" id="example">
									<tr>

										<td style="vertical-align:middle;" colspan="16">用户名: <input type="text" name="loginName" /> 推荐人编号: <input type="text" name="recommendLoginName" /> 接点人编号: <input type="text" name="fatherLoginName" /> 注册人编号: <input type="text" name="registerLoginName" /></td>
									</tr>
									<tr>
										<td style="vertical-align:middle;">开始时间：<input id="startDate" name="startDate" class="datemask1" value="" type="text" /> 结束时间：<input id="endDate" name="endDate" class="datemask1" value="" type="text" />
												
											<button type="submit" class="btn btn-success ">查询</button></td>
									</tr>
								</table>

							</jodd:form>
						</div>
						<div class="table-responsive">

							<table class="table table-bordered table-hover table-striped display tab_center" id="example">
								<thead>

									<tr class="info">
										<th>查看修改</th>
										<th>账号</th>
										<th>姓名</th>
										<th>报单人</th>
										<th>推荐人</th>

										<th>现金积分</th>
										<th>报单积分</th>
										<th>报单时间</th>
										<th>奖金状态</th>
										<th>购买状态</th>
										<th>账户状态</th>
									</tr>
								</thead>
								<tbody>
									<c:forEach items="${pagination.pageList}" var="o">

										<tr class="odd gradeX">

											<td><a href="admin/member/memberUpdateShow.shtml?id=${o.id}" class="btn btn-info btn-xs btn-info">
													<i class="fa fa-pencil"></i> 修改
												</a>
											</td>
											<td><a href="admin/member/memberYesActiveShow.shtml?id=${o.id}" target="_blank"> ${o.loginName} </a>
											</td>

											<td>${o.personName}</td>

											<td><c:if test="${o.activeLoginName==null}">
										管理员
									</c:if> <c:if test="${o.activeLoginName!=null}">
										${o.activeLoginName}
									</c:if>
											</td>

											<td>${o.recommendLoginName}</td>

											<td>${o.money}</td>
											<td>${o.ele}</td>

											<td><fmt:formatDate value="${o.activeDate}" type="date" pattern="yyyy-MM-dd HH:mm" />
											</td>


											<td><c:if test="${o.stateWage=='T'}">
													<a href="admin/member/memberYesActiveWage.shtml?id=${o.id}" onclick="return confirm('确认冻结 ${o.loginName} 奖金状态？')"> 正常 </a>
												</c:if> <c:if test="${o.stateWage=='F'}">
													<a href="admin/member/memberYesActiveWage.shtml?id=${o.id}" onclick="return confirm('确认恢复 ${o.loginName} 奖金状态？')">
														<span style="color: red">已冻结</span>
													</a>
												</c:if>
											</td>

											<td><c:if test="${o.accountBuy=='T'}">
												<a href="admin/member/memberYesActiveBuy.shtml?id=${o.id}" onclick="return confirm('确认修改 ${o.loginName} 购买状态？')"> 正常 </a>
											</c:if> <c:if test="${o.accountBuy=='F'}">
												<a href="admin/member/memberYesActiveBuy.shtml?id=${o.id}" onclick="return confirm('确认恢复 ${o.loginName} 购买状态？')">
													<span style="color: red">已冻结</span>
												</a>
											</c:if>
											</td>

											<td><c:if test="${o.accountUse=='T'}">
													<a href="admin/member/memberYesActiveUse.shtml?id=${o.id}" onclick="return confirm('确认冻结  ${o.loginName} 账户？')"> 正常 </a>
												</c:if> <c:if test="${o.accountUse=='F'}">
													<a href="admin/member/memberYesActiveUse.shtml?id=${o.id}" onclick="return confirm('确认恢复 ${o.loginName} 账户？')">
														<span style="color: red">已冻结</span>
													</a>
												</c:if>
											</td>
										</tr>

									</c:forEach>

									<tr>
										<td style="border: 0px;background: white;text-align: left;" colspan="17"><page:pageControl />
										</td>
									</tr>

								</tbody>


							</table>



						</div>

					</form>
				</div>
			</div>
			<!-- / Info Panel -->

		</div>

		<!-- /col-md-12 -->
	</div>
	<!--代码高亮end-->



	<link rel="stylesheet" href="<%=basePath%>/resources/adminCss/datepicker/datepicker3.css" />
	<script src="<%=basePath%>/resources/adminCss/datepicker/bootstrap-datepicker.js"></script>
	<script src="<%=basePath%>/resources/adminCss/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
	<!--中文补丁-->
	<!-- 单时间控件-->
	<!--http://www.bootcss.com/p/bootstrap-datetimepicker/-->

	<link rel="stylesheet" href="<%=basePath%>/resources/adminCss/daterangepicker/daterangepicker-bs3.css" />
	<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
	<script src="<%=basePath%>/resources/adminCss/daterangepicker/daterangepicker.js"></script>
	<!--双日期控件-->
	<!--http://blog.csdn.net/u012854400/article/details/45293037-->


	<script>
		$('.datemask1').datepicker({
			language : "zh-CN",
			format : 'yyyy-mm-dd',
			autoclose : true
		});

		$('.datemask2').daterangepicker(
				{
					locale : {
						applyLabel : '确定',
						cancelLabel : '取消',
						fromLabel : '起始时间',
						toLabel : '结束时间',
						format : 'yyyy-mm-dd',
						customRangeLabel : '自定义',
						daysOfWeek : [ '日', '一', '二', '三', '四', '五', '六' ],
						monthNames : [ '一月', '二月', '三月', '四月', '五月', '六月',
								'七月', '八月', '九月', '十月', '十一月', '十二月' ],
						firstDay : 1
					}
				});
	</script>
</body>
</html>